package com.gupao.ldr.vip.pattern.factory.enums;

import com.gupao.ldr.vip.pattern.factory.BMWCar;
import com.gupao.ldr.vip.pattern.factory.Car;
import com.gupao.ldr.vip.pattern.factory.LandRoverCar;

public enum CarBrandEnum {
    BMW(new BMWCar()),LANDROVER(new LandRoverCar());



    private Car car;

    CarBrandEnum(Car car) {
        this.car=car;
    }

    public Car get(){
        return this.car;
    }
}
